package com.orange.core.pojo;

import com.orange.core.pojo.enums.EErrorCode;

/**
 * Boolean Result
 */
public class BR {

    public static R<Boolean> result(boolean result) {
        return result(result, "操作失败，请检查");
    }

    public static R<Boolean> result(boolean result, String message) {
        return result ? R.ok() : R.fail(EErrorCode.PARAM_ERROR, message);
    }
}
